package com.dd.cloud.user.entity.chknowl;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dd.cloud.common.annotate.FileSuffix;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 学院中药表
 * </p>
 *
 * @author czg
 * @since 2022-07-04
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "学院中药表")
public class ChknowlChDrugs implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 药材名称
     */
    @Column(length = 32, comment = "药材")
    private String name;

    /**
     * 药材名称拼音
     */
    @Column(length = 128, comment = "药材名称拼音")
    private String namePinyin;


    /**
     * 药材+拼音
     */
    @Column(length = 32,comment = "药材名称")
    private String drugName;


    /**
     * 别名
     */
    @Column(comment = "别名")
    private String alias;

    /**
     * 图片地址 多个,隔开
     */
    @Column(type = MySqlTypeConstant.TEXT, comment = "图片地址 逗号隔开")
    private String imgUrl;

    /**
     * 药材简介
     */
    @Column(length = 512, comment = "药材简介")
    private String introduction;


    /**
     * 用法用量
     */
    @Column(length = 128, comment = "用法用量")
    private String dosage;

    /**
     * 功效主治
     */
    @Column(comment = "功效主治")
    private String indications;


    /**
     * 注意事项
     */
    @Column(comment = "注意事项")
    private String precautions;


//    /**
//     * 排序
//     */
//    @Column(length = 11, comment = "排序")
//    private Integer sort;

    /**
     * 性
     */
    @Column(comment = "性")
    private String nature;


    /**
     * 味
     */
    @Column(comment = "味")
    private String flavour;

    /**
     * 归经
     */
    @Column(comment = "归经")
    private String tropism;

    /**
     * 归经额外数据
     */
    @Column(comment = "归经额外数据")
    private String otherData;

    /**
     * 状态
     */
    @Column(length = 11, comment = "状态 1.正常 -1.删除")
    private Integer status;


    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;


    /**
     * 分类id
     */
    @Column(comment = "分类id")
    private Integer categoryId;

    /**
     * 层级
     */
    @TableField(exist = false)
    private Integer level;

    /**
     * 层级
     */
    @TableField(exist = false)
    private Integer pid;

}
